********************************************************************************
*
*   Understanding the Impact of US Military Service on Support for Insurrection
*   Journal of Conflict Resolution
*   Replication Files and Data
*
*   Robert A. Pape
*   Keven G. Ruby   
*   Kyle D. Larson
*   Kentaro Nakamura
*
*   READ ME
*   
*   v2024-05-29
*
********************************************************************************

This folder contains all the files (dofiles and data) to replicate the tables and 
figures in the research article and supplement. All analysis was conducted using 
Stata version 18.5 (StataNow).

*Data Files
1. vetstudy_jcr.dta // raw
2. vetstudy_jcr_use.dta // with transformed variables used in the analysis 

*Stata dofiles
1. create_variables.do
1. replicate_main.do
2. replicate_supplment.do

*Notes
Stata dofiles replicate_main.do and replicate_supplement.do both use the data file 
vetstudy_jcr_use.dta included in the replication data package.

Stata dofile create_variables.do uses vetstudy_jcr.dta and creates the indices and 
binary transformations of variables and has vetstudy_jcr_use.dta as output. For
convenience we include vetstudy_jcr_use.dta, which is replaced by the identical
file if create_variables.do is run.

*Required Packages
The following Stata packages are required for the dofiles to run:

Cinelli, Carlos, Jeremy Ferwerda, and Chad Hazlett. 2020. “SENSEMAKR: Stata Module 
to Provide Sensitivity Tools for OLS.” Statistical Software Components, 
April. https://ideas.repec.org//c/boc/bocode/s458773.html.

Cox, Nicholas J. 2010. “CATPLOT: Stata Module for Plots of Frequencies, Fractions 
or Percents of Categorical Data.” Statistical Software Components, December. 
https://ideas.repec.org//c/boc/bocode/s431501.html.

Jann, Ben. 2021. “HEATPLOT: Stata Module to Create Heat Plots and Hexagon Plots.” 
Statistical Software Components, August. 
https://ideas.repec.org//c/boc/bocode/s458598.html.

Jann, Ben. 2023. “COEFPLOT: Stata Module to Plot Regression Coefficients and Other 
Results.” Statistical Software Components, February. 
https://ideas.repec.org//c/boc/bocode/s457686.html.

Naqvi, Asjad. 2022. “SCHEMEPACK: Stata Module Providing Ready-to-Use Graph Schemes.” 
Statistical Software Components, November. 
https://ideas.repec.org//c/boc/bocode/s459012.html.



Please email Keven Ruby at kruby@uchicago.edu if you have any questions.